/*
 * @(#) ISsmSqlDao .java  1.0  2004-4-12
 *
 * Copyright 2003 by LongTop Corporation.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * LongTop Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with LongTop.
 */
package com.cnc.ssm.dao;

import com.cnc.ssm.UserInfo;

import org.springframework.dao.DataAccessException;

import java.util.HashMap;
import java.util.List;

/**
 * User: Du bf
 * Date: 2005-3-24
 */
public interface ISsmSqlDao {

	public static String BEAN_ID="ssmSqlDao";
	
    public UserInfo getUserInfo(String userName) throws DataAccessException;

    public List getFuncPermission(String userCode) throws DataAccessException;

    public List getAuthInfo(String refType, String refCode) throws DataAccessException;

    public int deleteMenuAuth(String refType, String refCode) throws DataAccessException;

    public int deleteFunctionAuth(String refType, String refCode) throws DataAccessException;

    public int deleteRole(String operCode) throws DataAccessException;

    public int deleteOper(String roleCode) throws DataAccessException;
    
    //liuwei更改
    public List listUserMenu(String userCode,String i18n) throws DataAccessException;

    public List listOper(String rolecode) throws DataAccessException;

    public List listOper(HashMap hs);

    public List listRole(HashMap hs);

    public List listRole(String operCode) throws DataAccessException;

    public boolean existUser(String userCode);

    public boolean existRole(String userRole);

    public List listCodeInfo(String codeType);

    public String getNameByCode(String codeType, String codeValue);

    public void updateLoginInfo(Long loginId);

    public List listCodeType();

    public List listCodeType(HashMap hs);

    public List listInstTree() throws DataAccessException;

    public boolean existInst(String officeCode);

    public List listInst(String instCode, String instLevel);

    public List listLoginLog(HashMap hs);

    public boolean existCodeType(String codeType);

    public List listCodeInfo(HashMap hs);

    public boolean existEmployee(String emplCode);

    public void updateUserName(String emplCode, String emplName);

    public List listEmployee(HashMap hs);

    public List listSuperEmployee(String emplCode, String emplType);

    public List listMenuTree();

    public boolean existMenu(String menuCode);

    public boolean existChildMenu(String menuCode);

    public List listSysParam();

	public List listTaskDetail(String taskid);

}
